package com.bing.entity;

import javax.persistence.EmbeddedId;
import javax.persistence.Entity;

/**
 * Created by kaibb on 15-11-2.
 */

@Entity
public class Customer {

    @EmbeddedId
    private CustomerId customerId;

    private boolean preferredCustomer;


    public CustomerId getCustomerId() {
        return customerId;
    }

    public void setCustomerId(CustomerId customerId) {
        this.customerId = customerId;
    }

    public boolean isPreferredCustomer() {
        return preferredCustomer;
    }

    public void setPreferredCustomer(boolean preferredCustomer) {
        this.preferredCustomer = preferredCustomer;
    }

}
